package com.hzncc.flowable_diboot.custom_field.service;

import com.diboot.core.vo.LabelValue;
import com.hzncc.flowable_diboot.custom_field.entity.CustomTableConfig;

import com.diboot.core.service.BaseService;
import com.hzncc.flowable_diboot.custom_field.entity.CustomTableItemConfig;
import com.hzncc.flowable_diboot.custom_field.entity.FilterSetting;
import com.hzncc.flowable_diboot.custom_field.vo.CustomTableConfigDetailVO;

import java.util.List;

/**
* 自定义表格配置 相关Service接口定义
* @author MyName
* @version 1.0
* @date 2024-11-14
* Copyright © MyCorp
*/
public interface CustomTableConfigService extends BaseService<CustomTableConfig> {
    List<CustomTableItemConfig> parsingSql(String sql);
    List<CustomTableItemConfig> parsingEntity(String entity);
    List<CustomTableItemConfig> getNewItems(String id,String entity,String sql);

    List<FilterSetting> getFilterSetting(String sql);

    void saveConfig(CustomTableConfigDetailVO customTableConfigService);

    List<LabelValue> findEntityList();

    CustomTableConfigDetailVO getConfig(String code);

    void copyToTenant(List<String> codes,String tenantId);
}